#region Microsoft Public License
/*
 * (c) Copyright Chenjun Wu. http://utablesdk.codeplex.com
 * 
 * This source is subject to the Microsoft Public License (Ms-PL).
 * Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
 * All other rights reserved.
 */
#endregion

﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UTable.Objects;

namespace UTable.ObjectManager.Commands
{
    public class ContentCommand: ICommand
    {
        private ContentCommandType _subType;
        private Object _param;
        private IObject _receiver;

        public ContentCommand(IObject reciever, ContentCommandType subType, Object param)
        {
            this._receiver = reciever;
            this._subType = SubType;
            this._param = param;
        }

        public CommandType Type { get { return CommandType.CONTENT; } }

        public ContentCommandType SubType { get { return _subType; } }

        public IObject Receiver {
            get { return _receiver; }
            set { _receiver = value; }
        }

        public Object Param { get { return _param; } }

        public bool Authorized
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public bool ConflictResolved
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }
    }

    public enum ContentCommandType
    {
        Input
    }
}
